<?php /* Smarty version 2.6.18, created on 2009-05-07 08:08:06
         compiled from ua-admin/memberlog_index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'ua-admin/memberlog_index.html', 27, false),array('modifier', 'date_format', 'ua-admin/memberlog_index.html', 57, false),array('function', 'cycle', 'ua-admin/memberlog_index.html', 54, false),array('function', 'mask_ip', 'ua-admin/memberlog_index.html', 56, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>控制台_<?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/prototype.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/popcalendar.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
</head>

<body>
<a name="top" />
<!-- 位置 -->
<table width="100%" border="0" cellpadding="2" cellspacing="6"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
<tr><td>
<div align="left"><a href="#" onClick="parent.main.location='home.php';return false;">控制台</a>&nbsp;&raquo;&nbsp;登陆日志管理</div></td></tr>
</table>
<br />
<!-- 搜索 -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td colspan="6"><div align="left">会员日志搜索</div></td></tr>
<form name="searchfrm" method="get" action="">
<tr>
  <td width="9%">用户名称:</td>
  <td width="15%"><input name="memberlog[username]" type="text" id="SearchUsername" size="25" value="<?php echo $_GET['memberlog']['username']; ?>
"></td>
  <td width="10%">登陆时间:</td>
  <td><input type="text" name="PubFromDate" size="10" value='<?php echo ((is_array($_tmp=@$_GET['PubFromDate'])) ? $this->_run_mod_handler('default', true, $_tmp, 'None') : smarty_modifier_default($_tmp, 'None')); ?>
' id="date1" readonly>
<a href="javascript:;" onclick='showCalendar(this, $("date1"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
calendar.gif" border="0" alt=""></a></td>
  <td>到</td>
  <td><input type="text" name="PubToDate" size="10" value='<?php echo ((is_array($_tmp=@$_GET['PubToDate'])) ? $this->_run_mod_handler('default', true, $_tmp, 'None') : smarty_modifier_default($_tmp, 'None')); ?>
' id="date2" readonly>
<a href="javascript:;" onclick='showCalendar(this, $("date2"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
calendar.gif" border="0" alt=""></a></td>
  </tr>

<tr>
  <td colspan="6"><div align="center">
    <input name="search" type="submit" id="search" value="搜索" class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'">
  </div></td>
  </tr>
</form>
</table>

<br />
<!-- 标题 -->
<form name="listfrm" action="" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header" align="center">
  <td>会员名称</td>
<td>登陆IP地址或位置</td>
<td>登陆时间</td>
<td><a href="<?php echo $_SERVER['PHP_SELF']; ?>
?action=clear" onClick="return confirmAction('是否删除所有日志记录?');">清空日志？</a></td>
</tr>
<tbody id="menu_1" style="display: yes">
<?php $_from = $this->_tpl_vars['LogList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['memberlogs'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['memberlogs']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['lg']):
        $this->_foreach['memberlogs']['iteration']++;
?>
<tr bgcolor="<?php echo smarty_function_cycle(array('values' => "#eeeeee,#ffffff"), $this);?>
" align="center">
<td><a href="./member.php?action=mod&id=<?php echo $this->_tpl_vars['lg']['LogMemberid']; ?>
"><?php echo $this->_tpl_vars['lg']['MemberUsername']; ?>
</a></td>
<td><?php echo MaskIp(array('ip' => $this->_tpl_vars['lg']['LogLoginip']), $this);?>
</td>
<td align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['lg']['LogLogintime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
<?php if ($this->_tpl_vars['lg']['LogLogintime'] > $this->_tpl_vars['Today']): ?>&nbsp;<img src="./images/new2.gif" /><?php endif; ?></td>
<td>&nbsp;</td>
</tr>
<?php endforeach; else: ?>
<tr bgcolor="#ffffff">
<td colspan="5" align="center"><strong>目前没有任何数据</strong></td>
</tr>
<?php endif; unset($_from); ?>
</tbody>
<!-- 分页 -->
<tr align="center"><td class="altbg1" colspan="5"><?php echo $this->_tpl_vars['ByPages']; ?>
</td></tr>
<tr class="header" bgcolor="#ffffff">
<td colspan="3">&nbsp;</td>
<td><div align="center"><a title="返回顶部" href="#top"><img id="go_top" src="./images/go_top.gif" border="0" style="vertical-align:middle;"/></a></div></td>
</tr>
</table>
</form>
</td>
</tr>
</table>

<!-- 结束new -->
</body>
</html>